package com.api.volunteer.util;

import org.springframework.http.HttpStatus;

import java.util.HashMap;
import java.util.Map;

/**
 * 返回数据
 */
public class Result extends HashMap<String, Object> {
	private static final long serialVersionUID = 1L;

	public Result() {

	}
	
	public static Result error() {

		Result result = new Result();
		result.put(String.valueOf(HttpStatus.NOT_ACCEPTABLE.value()), "未知异常，请联系管理员");

		return result;
	}



	@Override
	public Result put(String key, Object value) {
		super.put(key, value);
		return this;
	}
}
